package bean;

import java.time.LocalDate;

public class StudentBean {
    private int id;
    private String name;
    private String gender;
    private String phone;
    private LocalDate date = LocalDate.now();
    private String head;
    private ClassBean classBean;
    private RoomBean roomBean;

    public StudentBean(String name, String gender, String phone, LocalDate date, String head, ClassBean classBean, RoomBean roomBean) {
        this.name = name;
        this.gender = gender;
        this.phone = phone;
        this.date = date;
        this.head = head;
        this.classBean = classBean;
        this.roomBean = roomBean;
    }

    public StudentBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public ClassBean getClazzBean() {
        return classBean;
    }

    public void setClazzBean(ClassBean classBean) {
        this.classBean = classBean;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", phone='" + phone + '\'' +
                ", date=" + date +
                ", head='" + head + '\'' +
                ", clazzBean=" + classBean +
                ", roomBean=" + roomBean +
                '}';
    }
}
